<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Karamelo: grid.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="karamelodoxy.css" rel="stylesheet" type="text/css">
<!--  -->
<script type="text/javascript" src="karamelo_navtree_hacks.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.karamelo.org"><img alt="Logo" src="Karamelo_logo.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname"><a href="http://www.karamelo.org">Karamelo</a>
   &#160;<span id="projectnumber">714599e9</span>
   </div>
   <div id="projectbrief">Parallel Material Point Method Simulator</div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('grid_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">grid.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* -*- c++ -*- ----------------------------------------------------------</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *                    ***       Karamelo       ***</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *               Parallel Material Point Method Simulator</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * </span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * Copyright (2019) Alban de Vaucorbeil, alban.devaucorbeil@monash.edu</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * Materials Science and Engineering, Monash University</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * Clayton VIC 3800, Australia</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * This software is distributed under the GNU General Public License.</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * ----------------------------------------------------------------------- */</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#ifndef MPM_GRID_H</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#define MPM_GRID_H</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &quot;pointers.h&quot;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &quot;grid.h&quot;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;grid.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;Eigen/Eigen&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;array&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespaceEigen.html">Eigen</a>;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="structPoint.html">   38</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structPoint.html">Point</a> {</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="structPoint.html#aab81d0db845974c06efc0d9536ccc03e">   39</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="structPoint.html#aab81d0db845974c06efc0d9536ccc03e">owner</a>;    </div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="structPoint.html#aee912384768458f499bb3c4ba9f147c8">   40</a></span>&#160;  tagint <a class="code" href="structPoint.html#aee912384768458f499bb3c4ba9f147c8">tag</a>;   </div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structPoint.html#a4f35348e13f28fccfee5f7ddc7bc4e5c">   41</a></span>&#160;  <span class="keywordtype">double</span> x[3];  </div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structPoint.html#a2608f69a54f0406f9fad6a34c89525de">   42</a></span>&#160;  <span class="keywordtype">int</span> ntype[3]; </div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;};</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classGrid.html">   54</a></span>&#160;<span class="keyword">class </span><a class="code" href="classGrid.html">Grid</a> : <span class="keyword">protected</span> <a class="code" href="classPointers.html">Pointers</a> {</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classGrid.html#aec60ccd3de7d3daf6e183ed0194cc9b1">   56</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classGrid.html#aec60ccd3de7d3daf6e183ed0194cc9b1">ncells</a>;            </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classGrid.html#a710b8a0e6198be26c21a15803ff834ad">   57</a></span>&#160;  bigint <a class="code" href="classGrid.html#a710b8a0e6198be26c21a15803ff834ad">nnodes</a>;         </div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classGrid.html#ae7189b76d5f49d2e182f04587ff32ccd">   58</a></span>&#160;  bigint <a class="code" href="classGrid.html#ae7189b76d5f49d2e182f04587ff32ccd">nnodes_local</a>;   </div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classGrid.html#ad7906d2916aca27a3a06b5a674ae57c9">   59</a></span>&#160;  bigint <a class="code" href="classGrid.html#ad7906d2916aca27a3a06b5a674ae57c9">nnodes_ghost</a>;   </div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classGrid.html#ac924acfb15a9ae46197b4f0da52cb8bb">   60</a></span>&#160;  vector&lt;tagint&gt; <a class="code" href="classGrid.html#ac924acfb15a9ae46197b4f0da52cb8bb">ntag</a>;   </div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classGrid.html#a0e313d04723b11ee2b2095834fbcadcc">   61</a></span>&#160;  map&lt;int, int&gt; <a class="code" href="classGrid.html#a0e313d04723b11ee2b2095834fbcadcc">map_ntag</a>;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classGrid.html#a7c4c378092a3c6543545f3941b3794d7">   63</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classGrid.html#a7c4c378092a3c6543545f3941b3794d7">nx</a>;                </div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classGrid.html#a3542224a9f0d3f96ddb35ff86e48cdb0">   64</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classGrid.html#a3542224a9f0d3f96ddb35ff86e48cdb0">ny</a>;                </div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classGrid.html#a665db3b25629d599d2b1cbaff34f7484">   65</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classGrid.html#a665db3b25629d599d2b1cbaff34f7484">nz</a>;                </div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classGrid.html#a28d77360e7d11bc5f3434d7e0253b097">   67</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classGrid.html#a28d77360e7d11bc5f3434d7e0253b097">nx_global</a>;         </div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classGrid.html#a77b9e87080e6d91f40c7e5a2f59f4ae0">   68</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classGrid.html#a77b9e87080e6d91f40c7e5a2f59f4ae0">ny_global</a>;         </div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classGrid.html#a0321e21ad68a5a4de2bd95c6edcd2157">   69</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classGrid.html#a0321e21ad68a5a4de2bd95c6edcd2157">nz_global</a>;         </div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classGrid.html#aa2d8512139c4268db55a94495cbf16a7">   71</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classGrid.html#aa2d8512139c4268db55a94495cbf16a7">nshared</a>;           </div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classGrid.html#afc45fb14597e3809cb7ca1970ee50bf0">   72</a></span>&#160;  vector&lt;tagint&gt; <a class="code" href="classGrid.html#afc45fb14597e3809cb7ca1970ee50bf0">shared</a>; </div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classGrid.html#a4342dc39fc169bc44ee9976381c2f7d0">   73</a></span>&#160;  map&lt;int, vector&lt;tagint&gt;&gt; <a class="code" href="classGrid.html#a4342dc39fc169bc44ee9976381c2f7d0">dest_nshared</a>;   </div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classGrid.html#a545a6a9830ce92b46a35a114e77d6712">   74</a></span>&#160;  map&lt;int, vector&lt;tagint&gt;&gt; <a class="code" href="classGrid.html#a545a6a9830ce92b46a35a114e77d6712">origin_nshared</a>; </div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classGrid.html#afcae9645bfbc761de81a8c12633bb6e5">   76</a></span>&#160;  vector&lt;int&gt; <a class="code" href="classGrid.html#afcae9645bfbc761de81a8c12633bb6e5">nowner</a>;    </div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classGrid.html#a643c991a5ff6e2609fd180a07b6d0d86">   78</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classGrid.html#a643c991a5ff6e2609fd180a07b6d0d86">cellsize</a>;       </div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classGrid.html#a865a2bde51e3cf54f436b813eccf9d77">   80</a></span>&#160;  vector&lt;Eigen::Vector3d&gt; <a class="code" href="classGrid.html#a865a2bde51e3cf54f436b813eccf9d77">x</a>;            </div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classGrid.html#a8442fbd596124be166e69403cd315479">   81</a></span>&#160;  vector&lt;Eigen::Vector3d&gt; <a class="code" href="classGrid.html#a8442fbd596124be166e69403cd315479">x0</a>;           </div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classGrid.html#af38355ccf01df824d9799f0f46177d05">   82</a></span>&#160;  vector&lt;Eigen::Vector3d&gt; <a class="code" href="classGrid.html#af38355ccf01df824d9799f0f46177d05">v</a>;            </div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classGrid.html#a23cfaae6069c3f2dc44e479bca5a210f">   83</a></span>&#160;  vector&lt;Eigen::Vector3d&gt; <a class="code" href="classGrid.html#a23cfaae6069c3f2dc44e479bca5a210f">v_update</a>;     </div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classGrid.html#afbeee2440526da444acaf7a766a11dde">   84</a></span>&#160;  vector&lt;Eigen::Vector3d&gt; <a class="code" href="classGrid.html#afbeee2440526da444acaf7a766a11dde">mb</a>;           </div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classGrid.html#a27e5ca54c8421d801a331b069ee55a1b">   85</a></span>&#160;  vector&lt;Eigen::Vector3d&gt; <a class="code" href="classGrid.html#a27e5ca54c8421d801a331b069ee55a1b">f</a>;            </div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classGrid.html#a918a9bbfb80c7e84d4990453d9320561">   87</a></span>&#160;  vector&lt;double&gt; <a class="code" href="classGrid.html#a918a9bbfb80c7e84d4990453d9320561">mass</a>;              </div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classGrid.html#a95db5faa3cfa48b813891708f7a1de0b">   88</a></span>&#160;  vector&lt;int&gt; <a class="code" href="classGrid.html#a95db5faa3cfa48b813891708f7a1de0b">mask</a>;                 </div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classGrid.html#a2cd5b2c2d7ed5dda8c9631af9fe5525c">   89</a></span>&#160;  vector&lt;bool&gt; <a class="code" href="classGrid.html#a2cd5b2c2d7ed5dda8c9631af9fe5525c">rigid</a>;               </div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classGrid.html#aaa88e1ac28ff6eeb76a89105370323af">   90</a></span>&#160;  vector&lt;array&lt;int, 3&gt;&gt; <a class="code" href="classGrid.html#aaa88e1ac28ff6eeb76a89105370323af">ntype</a>;      </div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;  vector&lt;double&gt; pH;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classGrid.html#ac21878196802880a44a31d333337358c">   94</a></span>&#160;  MPI_Datatype <a class="code" href="classGrid.html#ac21878196802880a44a31d333337358c">Pointtype</a>;    </div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;  <a class="code" href="classGrid.html">Grid</a>(<span class="keyword">class</span> <a class="code" href="classMPM.html">MPM</a> *);</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;  <span class="keyword">virtual</span> ~<a class="code" href="classGrid.html">Grid</a>();</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  <span class="keywordtype">void</span> grow(<span class="keywordtype">int</span>);              </div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  <span class="keywordtype">void</span> grow_ghosts(<span class="keywordtype">int</span>);       </div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  <span class="keywordtype">void</span> setup(<span class="keywordtype">string</span>);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  <span class="keywordtype">void</span> init(<span class="keywordtype">double</span>*, <span class="keywordtype">double</span>*); </div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="keywordtype">void</span> reduce_mass_ghost_nodes();                  </div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  <span class="keywordtype">void</span> reduce_mass_ghost_nodes_old();</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  <span class="keywordtype">void</span> reduce_ghost_nodes(<span class="keywordtype">bool</span> only_v = <span class="keyword">false</span>);    </div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  <span class="keywordtype">void</span> reduce_ghost_nodes_old(<span class="keywordtype">bool</span> only_v = <span class="keyword">false</span>);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  <span class="keywordtype">void</span> update_grid_velocities();                   </div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  <span class="keywordtype">void</span> update_grid_positions();                    </div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  <span class="keywordtype">void</span> reduce_regularized_variables();             </div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;};</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classGrid_html_a545a6a9830ce92b46a35a114e77d6712"><div class="ttname"><a href="classGrid.html#a545a6a9830ce92b46a35a114e77d6712">Grid::origin_nshared</a></div><div class="ttdeci">map&lt; int, vector&lt; tagint &gt; &gt; origin_nshared</div><div class="ttdoc">for each CPU, list the tags of ghost nodes </div><div class="ttdef"><b>Definition:</b> grid.h:74</div></div>
<div class="ttc" id="classGrid_html_a95db5faa3cfa48b813891708f7a1de0b"><div class="ttname"><a href="classGrid.html#a95db5faa3cfa48b813891708f7a1de0b">Grid::mask</a></div><div class="ttdeci">vector&lt; int &gt; mask</div><div class="ttdoc">nodes&amp;#39; group mask </div><div class="ttdef"><b>Definition:</b> grid.h:88</div></div>
<div class="ttc" id="classGrid_html_a865a2bde51e3cf54f436b813eccf9d77"><div class="ttname"><a href="classGrid.html#a865a2bde51e3cf54f436b813eccf9d77">Grid::x</a></div><div class="ttdeci">vector&lt; Eigen::Vector3d &gt; x</div><div class="ttdoc">nodes&amp;#39; current position </div><div class="ttdef"><b>Definition:</b> grid.h:80</div></div>
<div class="ttc" id="classGrid_html_afbeee2440526da444acaf7a766a11dde"><div class="ttname"><a href="classGrid.html#afbeee2440526da444acaf7a766a11dde">Grid::mb</a></div><div class="ttdeci">vector&lt; Eigen::Vector3d &gt; mb</div><div class="ttdoc">nodes&amp;#39; external forces times the mass </div><div class="ttdef"><b>Definition:</b> grid.h:84</div></div>
<div class="ttc" id="structPoint_html_aee912384768458f499bb3c4ba9f147c8"><div class="ttname"><a href="structPoint.html#aee912384768458f499bb3c4ba9f147c8">Point::tag</a></div><div class="ttdeci">tagint tag</div><div class="ttdoc">Unique identification number of the point. </div><div class="ttdef"><b>Definition:</b> grid.h:40</div></div>
<div class="ttc" id="classGrid_html_afcae9645bfbc761de81a8c12633bb6e5"><div class="ttname"><a href="classGrid.html#afcae9645bfbc761de81a8c12633bb6e5">Grid::nowner</a></div><div class="ttdeci">vector&lt; int &gt; nowner</div><div class="ttdoc">which CPU owns each node (universe-&gt;me for local nodes, other CPU for ghost nodes ...</div><div class="ttdef"><b>Definition:</b> grid.h:76</div></div>
<div class="ttc" id="classGrid_html_ac924acfb15a9ae46197b4f0da52cb8bb"><div class="ttname"><a href="classGrid.html#ac924acfb15a9ae46197b4f0da52cb8bb">Grid::ntag</a></div><div class="ttdeci">vector&lt; tagint &gt; ntag</div><div class="ttdoc">unique identifier for nodes in the system. </div><div class="ttdef"><b>Definition:</b> grid.h:60</div></div>
<div class="ttc" id="structPoint_html_aab81d0db845974c06efc0d9536ccc03e"><div class="ttname"><a href="structPoint.html#aab81d0db845974c06efc0d9536ccc03e">Point::owner</a></div><div class="ttdeci">int owner</div><div class="ttdoc">ID of the CPU who created the point. </div><div class="ttdef"><b>Definition:</b> grid.h:39</div></div>
<div class="ttc" id="classGrid_html_a27e5ca54c8421d801a331b069ee55a1b"><div class="ttname"><a href="classGrid.html#a27e5ca54c8421d801a331b069ee55a1b">Grid::f</a></div><div class="ttdeci">vector&lt; Eigen::Vector3d &gt; f</div><div class="ttdoc">nodes&amp;#39; internal forces </div><div class="ttdef"><b>Definition:</b> grid.h:85</div></div>
<div class="ttc" id="classGrid_html_a643c991a5ff6e2609fd180a07b6d0d86"><div class="ttname"><a href="classGrid.html#a643c991a5ff6e2609fd180a07b6d0d86">Grid::cellsize</a></div><div class="ttdeci">double cellsize</div><div class="ttdoc">size of the square cells forming the grid </div><div class="ttdef"><b>Definition:</b> grid.h:78</div></div>
<div class="ttc" id="classGrid_html_aaa88e1ac28ff6eeb76a89105370323af"><div class="ttname"><a href="classGrid.html#aaa88e1ac28ff6eeb76a89105370323af">Grid::ntype</a></div><div class="ttdeci">vector&lt; array&lt; int, 3 &gt; &gt; ntype</div><div class="ttdoc">node type in x, y, and z directions (False for an edge, True otherwise) </div><div class="ttdef"><b>Definition:</b> grid.h:90</div></div>
<div class="ttc" id="namespaceEigen_html"><div class="ttname"><a href="namespaceEigen.html">Eigen</a></div></div>
<div class="ttc" id="classGrid_html_a3542224a9f0d3f96ddb35ff86e48cdb0"><div class="ttname"><a href="classGrid.html#a3542224a9f0d3f96ddb35ff86e48cdb0">Grid::ny</a></div><div class="ttdeci">int ny</div><div class="ttdoc">number of nodes along y on this CPU </div><div class="ttdef"><b>Definition:</b> grid.h:64</div></div>
<div class="ttc" id="classMPM_html"><div class="ttname"><a href="classMPM.html">MPM</a></div><div class="ttdef"><b>Definition:</b> mpm.h:29</div></div>
<div class="ttc" id="classGrid_html"><div class="ttname"><a href="classGrid.html">Grid</a></div><div class="ttdef"><b>Definition:</b> grid.h:54</div></div>
<div class="ttc" id="classGrid_html_aa2d8512139c4268db55a94495cbf16a7"><div class="ttname"><a href="classGrid.html#aa2d8512139c4268db55a94495cbf16a7">Grid::nshared</a></div><div class="ttdeci">int nshared</div><div class="ttdoc">number of nodes that are shared (ghosts in other CPUs) </div><div class="ttdef"><b>Definition:</b> grid.h:71</div></div>
<div class="ttc" id="classGrid_html_a2cd5b2c2d7ed5dda8c9631af9fe5525c"><div class="ttname"><a href="classGrid.html#a2cd5b2c2d7ed5dda8c9631af9fe5525c">Grid::rigid</a></div><div class="ttdeci">vector&lt; bool &gt; rigid</div><div class="ttdoc">are the nodes in the area of influence of a rigid body? </div><div class="ttdef"><b>Definition:</b> grid.h:89</div></div>
<div class="ttc" id="classGrid_html_a4342dc39fc169bc44ee9976381c2f7d0"><div class="ttname"><a href="classGrid.html#a4342dc39fc169bc44ee9976381c2f7d0">Grid::dest_nshared</a></div><div class="ttdeci">map&lt; int, vector&lt; tagint &gt; &gt; dest_nshared</div><div class="ttdoc">for each CPU, list the tags of shared nodes </div><div class="ttdef"><b>Definition:</b> grid.h:73</div></div>
<div class="ttc" id="classGrid_html_ae7189b76d5f49d2e182f04587ff32ccd"><div class="ttname"><a href="classGrid.html#ae7189b76d5f49d2e182f04587ff32ccd">Grid::nnodes_local</a></div><div class="ttdeci">bigint nnodes_local</div><div class="ttdoc">number of nodes (in this CPU) </div><div class="ttdef"><b>Definition:</b> grid.h:58</div></div>
<div class="ttc" id="classGrid_html_a918a9bbfb80c7e84d4990453d9320561"><div class="ttname"><a href="classGrid.html#a918a9bbfb80c7e84d4990453d9320561">Grid::mass</a></div><div class="ttdeci">vector&lt; double &gt; mass</div><div class="ttdoc">nodes&amp;#39; current mass </div><div class="ttdef"><b>Definition:</b> grid.h:87</div></div>
<div class="ttc" id="classGrid_html_a23cfaae6069c3f2dc44e479bca5a210f"><div class="ttname"><a href="classGrid.html#a23cfaae6069c3f2dc44e479bca5a210f">Grid::v_update</a></div><div class="ttdeci">vector&lt; Eigen::Vector3d &gt; v_update</div><div class="ttdoc">nodes&amp;#39; velocity at time t+dt </div><div class="ttdef"><b>Definition:</b> grid.h:83</div></div>
<div class="ttc" id="classGrid_html_af38355ccf01df824d9799f0f46177d05"><div class="ttname"><a href="classGrid.html#af38355ccf01df824d9799f0f46177d05">Grid::v</a></div><div class="ttdeci">vector&lt; Eigen::Vector3d &gt; v</div><div class="ttdoc">nodes&amp;#39; velocity at time t </div><div class="ttdef"><b>Definition:</b> grid.h:82</div></div>
<div class="ttc" id="classGrid_html_a8442fbd596124be166e69403cd315479"><div class="ttname"><a href="classGrid.html#a8442fbd596124be166e69403cd315479">Grid::x0</a></div><div class="ttdeci">vector&lt; Eigen::Vector3d &gt; x0</div><div class="ttdoc">nodes&amp;#39; position in the reference coordinate system </div><div class="ttdef"><b>Definition:</b> grid.h:81</div></div>
<div class="ttc" id="classGrid_html_afc45fb14597e3809cb7ca1970ee50bf0"><div class="ttname"><a href="classGrid.html#afc45fb14597e3809cb7ca1970ee50bf0">Grid::shared</a></div><div class="ttdeci">vector&lt; tagint &gt; shared</div><div class="ttdoc">tag of all shared nodes </div><div class="ttdef"><b>Definition:</b> grid.h:72</div></div>
<div class="ttc" id="classGrid_html_aec60ccd3de7d3daf6e183ed0194cc9b1"><div class="ttname"><a href="classGrid.html#aec60ccd3de7d3daf6e183ed0194cc9b1">Grid::ncells</a></div><div class="ttdeci">int ncells</div><div class="ttdoc">number of cells </div><div class="ttdef"><b>Definition:</b> grid.h:56</div></div>
<div class="ttc" id="classGrid_html_a77b9e87080e6d91f40c7e5a2f59f4ae0"><div class="ttname"><a href="classGrid.html#a77b9e87080e6d91f40c7e5a2f59f4ae0">Grid::ny_global</a></div><div class="ttdeci">int ny_global</div><div class="ttdoc">number of nodes along y on all CPUs </div><div class="ttdef"><b>Definition:</b> grid.h:68</div></div>
<div class="ttc" id="classGrid_html_ac21878196802880a44a31d333337358c"><div class="ttname"><a href="classGrid.html#ac21878196802880a44a31d333337358c">Grid::Pointtype</a></div><div class="ttdeci">MPI_Datatype Pointtype</div><div class="ttdoc">MPI type for struct Point. </div><div class="ttdef"><b>Definition:</b> grid.h:94</div></div>
<div class="ttc" id="classGrid_html_ad7906d2916aca27a3a06b5a674ae57c9"><div class="ttname"><a href="classGrid.html#ad7906d2916aca27a3a06b5a674ae57c9">Grid::nnodes_ghost</a></div><div class="ttdeci">bigint nnodes_ghost</div><div class="ttdoc">number of ghost nodes (in this CPU) </div><div class="ttdef"><b>Definition:</b> grid.h:59</div></div>
<div class="ttc" id="structPoint_html"><div class="ttname"><a href="structPoint.html">Point</a></div><div class="ttdef"><b>Definition:</b> grid.h:38</div></div>
<div class="ttc" id="classPointers_html"><div class="ttname"><a href="classPointers.html">Pointers</a></div><div class="ttdef"><b>Definition:</b> pointers.h:29</div></div>
<div class="ttc" id="classGrid_html_a710b8a0e6198be26c21a15803ff834ad"><div class="ttname"><a href="classGrid.html#a710b8a0e6198be26c21a15803ff834ad">Grid::nnodes</a></div><div class="ttdeci">bigint nnodes</div><div class="ttdoc">total number of nodes in the domain </div><div class="ttdef"><b>Definition:</b> grid.h:57</div></div>
<div class="ttc" id="classGrid_html_a7c4c378092a3c6543545f3941b3794d7"><div class="ttname"><a href="classGrid.html#a7c4c378092a3c6543545f3941b3794d7">Grid::nx</a></div><div class="ttdeci">int nx</div><div class="ttdoc">number of nodes along x on this CPU </div><div class="ttdef"><b>Definition:</b> grid.h:63</div></div>
<div class="ttc" id="classGrid_html_a0321e21ad68a5a4de2bd95c6edcd2157"><div class="ttname"><a href="classGrid.html#a0321e21ad68a5a4de2bd95c6edcd2157">Grid::nz_global</a></div><div class="ttdeci">int nz_global</div><div class="ttdoc">number of nodes along z on all CPUs </div><div class="ttdef"><b>Definition:</b> grid.h:69</div></div>
<div class="ttc" id="classGrid_html_a28d77360e7d11bc5f3434d7e0253b097"><div class="ttname"><a href="classGrid.html#a28d77360e7d11bc5f3434d7e0253b097">Grid::nx_global</a></div><div class="ttdeci">int nx_global</div><div class="ttdoc">number of nodes along x on all CPUs </div><div class="ttdef"><b>Definition:</b> grid.h:67</div></div>
<div class="ttc" id="classGrid_html_a665db3b25629d599d2b1cbaff34f7484"><div class="ttname"><a href="classGrid.html#a665db3b25629d599d2b1cbaff34f7484">Grid::nz</a></div><div class="ttdeci">int nz</div><div class="ttdoc">number of nodes along z on this CPU </div><div class="ttdef"><b>Definition:</b> grid.h:65</div></div>
<div class="ttc" id="classGrid_html_a0e313d04723b11ee2b2095834fbcadcc"><div class="ttname"><a href="classGrid.html#a0e313d04723b11ee2b2095834fbcadcc">Grid::map_ntag</a></div><div class="ttdeci">map&lt; int, int &gt; map_ntag</div><div class="ttdoc">map_ntag[ntag[i]] = i; </div><div class="ttdef"><b>Definition:</b> grid.h:61</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>grid.h</b></li>
    <li class="footer">Generated on Tue Jul 7 2020 22:31:23 for Karamelo by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
<!-- Matomo -->
<script type="text/javascript">
  var _paq = _paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//stats.sylphide-consulting.com/matomo/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', '20']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<noscript><p><img src="//stats.sylphide-consulting.com/matomo/piwik.php?idsite=20&rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->
</body>
</html>
